<div class="col-md-12">

	<div class="row">
		<div class="col-md-12">
			问题描述：有25本书，分给5个人，每个人至少一本，且每个人数量都不相同，问：有几种分法？
			<p>进一步：有n本书，分给m个人，每个人至少一本，且每个人数量都不相同，问：有几种分法？
		</div>
		<form action="/puzzle/detail/4" class="form-horizontal">
			<div class="form-group">
				<label class="col-md-1 control-label">书本数</label>
				<div class="col-md-1">
					<input class="form-control" name="bookCount" value="${bookCount}" type="text">
				</div>

				<label class="col-md-1 control-label">人数</label>
				<div class="col-md-1">
					<input class="form-control" name="peopleCount" value="${peopleCount}" type="text">
				</div>
				<div class="col-md-1">
					<input type="submit" class="btn btn-primary" value="开始计算">
				</div>
			</div>
		</form>
	</div>


	<!--Start row-->
	<div class="row">
		<div class="col-md-12">
			<div class="white-box">
				<div class="table-responsive">
					<#if minBookCount gt 0>
						输入参数有误，人数=${peopleCount}，书本数=${bookCount}，小于最少书本数量：${minBookCount}
						<#else>
							共有<span style="font-size: 25px;color: red;">${list?size}</span>种分法：
							<table class="table table-bordered">
								<thead>
									<tr>
										<th>序号</th>
										<#list 1..peopleCount as tr>
											<th>第${tr_index + 1}人</th>
										</#list>
									</tr>
								</thead>
								<tbody>
									<#list list as tr>
										<tr>
											<td>${tr_index+1}</td>
											<#list tr as td>
												<td>${td}</td>
											</#list>
										</tr>
									</#list>
								</tbody>
							</table>
					</#if>
				</div>
			</div>
		</div>
	</div>

</div>